home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
editor
/
t2p16.zip
/
TEXT2PCX.DOC
< prev
next >
Wrap
Text File
|
1996-06-30
|
10KB
|
238 lines
------------------------------
| |
| TEXT2PCX Version 1.6 |
| by Po Wing June 1996 |
| |
------------------------------
CONTENTS
1. License Agreement
2. Disclaimer
3. File List
4. What Is TEXT2PCX?
5. Using TEXT2PCX
6. Editing Font Files
7. Program Limitations
8. Contacting The Author
--------------------------------------------------------------------------------
1. LICENCE AGREEMENT
TEXT2PCX is Freeware. You may freely use or distribute it, but subject to
the following conditions:
- You may not charge a fee for using or distributing TEXT2PCX, except to
cover the cost of media, copying or transportation.
- All the files in the original distribution package are distributed
together, and in their original, unmodified form. You may repack the
archive if you wish, as long as you include all the files.
--------------------------------------------------------------------------------
2. DISCLAIMER
Possession and use of TEXT2PCX is entirely at your own risk. The author
will not be held responsible for any damage or loss incurred as a result
of the use, misuse or inability to use the software. TEXT2PCX has been
carefully tested, with no strange behaviour reported. No deliberately
destructive code has been used.
--------------------------------------------------------------------------------
3. FILE LIST
The following files should be included in the distribution package. If
any are missing, please report the problem to the administrator of the
system from which you obtained it, and obtain a new copy from a more
reliable source.
FILE_ID.DIZ => Archive description
FNT8X8.FON => Font file(text type), size 8x8
FNT7X15.FNT => Font file(binary type), size 7x15
FNT8X15.FNT => Font file(binary type), size 8x15
FNT8X16.FNT => Font file(binary type), size 8x16
FNT12X24.FNT => Font file(binary type), size 12x24
FNTEDIT.EXE => Font editor for *.FNT files
README.TXT => Brief information
TEXT2PCX.DOC => This detailed documentation
TEXT2PCX.EXE => TEXT2PCX main program
--------------------------------------------------------------------------------
4. WHAT IS TEXT2PCX?
TEXT2PCX is a converion program for transforming a plain text file into
black and white Zsoft PaintBrush (PCX) image file. A user will supply a plain
text file with various options on how the plain text file is read by TEXT2PCX.
The user can control the size of text to be read, or let the program to detect
the size of text, or even produce multiple image outputs.
The program will use the input text to look up a table, a font table. It
will scale automatically to generate an image with specified size. The user
can also control the size or orientation of output image.
--------------------------------------------------------------------------------
5. USING TEXT2PCX
The syntax for the command TEXT2PCX.EXE is as follows:
TEXT2PCX [ option ] input_text_file output_PCX_file
where "input_text_file" is the plain text file,
"output_PCX_file" will be the output PCX image file
The options are listed below:
-TC col ---> to control the number of column, "col", of text to be read by
each page. The default value is 80.
e.g. TEXT2PCX -TC 100 input.txt output.pcx
-TR row ---> to control the number of row, "row", of text to be read by each
page. The default value is 25.
e.g. TEXT2PCX -TR 30 input.txt output.pcx
-AT ---> this will try to automatically calculate the maximum column and
row of input text, but the size of input text should not be
VERY LARGE.
e.g. TEXT2PCX -AT input.txt output.pcx
-PW wid ---> to control the width, "wid", of output image in number of pixels.
This value input will be automatically converted to nearest
integer divisible by 8. The default is 640 pixels.
e.g. TEXT2PCX -PW 720 input.txt output.pcx
-PL len ---> to control the length, "len", of output image in number of
pixels. The default is 200 pixels.
e.g. TEXT2PCX -PL 400 input.txt output.pcx
-MW wid ---> supply the width, "wid", of image and will automatically find
the length of image which maintaining the aspect ratio based on
input text.
e.g. TEXT2PCX -MW 720 input.txt output.pcx
-ML len ---> supply the length, "len", of image and will automatically find
the width of image which maintaining the aspect ratio based on
input text. IGNORED if -MW is also specified.
e.g. TEXT2PCX -ML 400 input.txt output.pcx
-HR res ---> image horizontal resolution in dpi, default=200
e.g. TEXT2PCX -HR 360 input.txt output.pcx
-VR res ---> image vertical resolution in dpi, default=200
e.g. TEXT2PCX -VR 360 input.txt output.pcx
-R ---> rotate text by 90 degree anti-clockwisely which produce an
image in landscape orientation.
e.g. TEXT2PCX -R input.txt output.pcx
-I ---> inverse output, i.e. black <-> white
e.g. TEXT2PCX -I input.txt output.pcx
-MF ---> create multiple PCX image files. No file extension is required
since the extension will be automatically added. For output file,
outfile, image output files will be outfile.nnn (nnn=000 to 999).
Text is broken into multiple text for each image, where breaks
are determined by the size of text specified.
e.g. TEXT2PCX -MF input.txt output
-ME ---> similar to -MF but text are broken at at form feed character,
0x0c.
e.g. TEXT2PCX -ME input.txt output
-B file ---> use customized font file in binary format: file contains first
2 bytes specifying width and height of each character, followed
by 256 blocks of data where block size=ceil(width/8)Xheight.
Use FNTEDIT.EXE to edit the font file.
e.g. TEXT2PCX -B fnt8x15.fnt input.txt output.pcx
-V file ---> use customized font file in visual format: each entry contains
ASCII code of character followed by 8X8 bit-map of 0 and 1.
This will override -B option.
e.g. TEXT2PCX -V fnt8x8.fon input.txt output.pcx
-SC num ---> Skip last page if last page contains less than "num" of
characters. This is useful when last page of multiple pages have
only several printer control codes.
e.g. TEXT2PCX -SC 5 input.txt output.pcx
-S ---> suppress display of statistics at the end of conversion.
e.g. TEXT2PCX -S input.txt output.pcx
Several options can be combined to use at the same time. The common examples
are as follows:
e.g. TEXT2PCX -ME -R -B fnt12x24.fnt -SC 3 -S input.txt output
e.g. TEXT2PCX -TC 132 -TR 50 -MW 1000 input.txt output.pcx
e.g. TEXT2PCX -AT -ML 1000 input.txt output.pcx
e.g. TEXT2PCX -TC 132 -MF -R -V fnt8x8.fon -S input.txt output
--------------------------------------------------------------------------------
6. EDITING FONT FILES
There are two types of font files to be used by TEXT2PCX.EXE, text type and
binary type.
The text type is the font file that you can use your favourite text editor
to edit. The FNT8X8.FON is the example included in this archive.
The format is simple as shown below. It consists of a line specifying the
ASCII code of the character and a 8X8 bitmap of the character. There is no need
to include all 256 characters, only those you want to customize.
1
01111110
10000001
10100101
10000001
10111101
10011001
10000001
01111110
65
00110000
01001000
10000100
10000100
11111100
10000100
10000100
00000000
The binary type is font files in binary format and